package br.com.fitness.application;

import java.io.Serializable;
import java.util.List;

import br.com.fitness.core.AbstractEntity;

public interface AbstractApplication<T extends AbstractEntity, E extends Serializable> {

	void persist(T entity) throws Exception;

	void update(T entity) throws Exception;

	T findById(E id);

	void delete(T entity) throws Exception;

	List<T> list();

}